import Layout from '@/layout'

const productRouter = {
  path: '/product',
  component: Layout,
  name: 'Product',
  meta: { title: '产品', icon: 'product' },
  children: [
    {
      path: 'search',
      name: 'Table',
      component: () => import('@/views/product/search'),
      meta: { title: '产品查询', icon: 'search' }
    },
    {
      path: 'add',
      name: 'Tree',
      component: () => import('@/views/product/add'),
      meta: { title: '产品添加', icon: 'plus' }
    },
    {
      path: 'in_record',
      name: 'Tree',
      component: () => import('@/views/product/InRecord'),
      meta: { title: '产品入库记录', icon: 'tree' }
    },
    {
      path: 'out_record',
      name: 'Tree',
      component: () => import('@/views/product/OutRecord'),
      meta: { title: '产品出库记录', icon: 'tree' }
    }
  ]
}

export default productRouter
